package com.xyz.jira.plugin.responses;

import javax.xml.bind.annotation.*;

/**
 * A message returned from the {@link MessageResource}
 */
@XmlRootElement(name = "project")
@XmlAccessorType(XmlAccessType.FIELD)
public class ProjectInfo {
    @XmlAttribute
    private String pid;
    
    @XmlElement(name = "key")
    private String key;
    @XmlElement(name = "name")
    private String name;

    public ProjectInfo() {
    }

    public ProjectInfo(String pid, String key, String name) {
        this.pid = pid;
        this.key = key;
        this.name = name;
    }
    
    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
